package com.cloudfun.campusshare.common.response;

import lombok.Data;

import java.util.List;

/**
 * @author linyangping
 * @Title:
 * @date 2019/11/19 上午11:48
 */
@Data
public class PageResult<T> {
    long totalSize;
    List<T> elements;

    public PageResult(){}

    public PageResult(long totalSize, List<T> elements){
        this.totalSize = totalSize;
        this.elements = elements;
    }
}